﻿using GalaSoft.MvvmLight;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CastingWellEquipmentGUI.Model
{
    public class ControlTag : ObservableObject
    {
        private int _OrderNo;
        public int OrderNo
        {
            get { return _OrderNo; }
            set
            {
                _OrderNo = value;
                RaisePropertyChanged(() => OrderNo);
            }
        }
        private int _FormId;
        public int FormId
        {
            get { return _FormId; }
            set
            {
                _FormId = value;
                RaisePropertyChanged(() => FormId);
            }
        }

        private string _FormExplain;
        public string FormExplain
        {
            get { return _FormExplain; }
            set
            {
                _FormExplain = value;
                RaisePropertyChanged(() => FormExplain);
            }
        }

        private int _ControlId;
        public int ControlId
        {
            get { return _ControlId; }
            set
            {
                _ControlId = value;
                RaisePropertyChanged(() => ControlId);
            }
        }

        private string _ControlExplain;
        public string ControlExplain
        {
            get { return _ControlExplain; }
            set
            {
                _ControlExplain = value;
                RaisePropertyChanged(() => _ControlExplain);
            }
        }

        private int _TagID;
        public int TagID
        {
            get { return _TagID; }
            set
            {
                _TagID = value;
                RaisePropertyChanged(() => TagID);
            }
        }

        private string _TagName;
        public string TagName
        {
            get { return _TagName; }
            set
            {
                _TagName = value;
                RaisePropertyChanged(() => TagName);
            }
        }

        private string _Address;
        public string Address
        {
            get { return _Address; }
            set
            {
                _Address = value;
                RaisePropertyChanged(() => Address);
            }
        }

        private string _DataType;
        public string DataType
        {
            get { return _DataType; }
            set
            {
                _DataType = value;
                RaisePropertyChanged(() => DataType);
            }
        }
        
        private string _PlcModelName;
        public string PlcModelName
        {
            get { return _PlcModelName; }
            set
            {
                _PlcModelName = value;
                RaisePropertyChanged(() => PlcModelName);
            }
        }

        private string _BrandName;
        public string BrandName
        {
            get { return _BrandName; }
            set
            {
                _BrandName = value;
                RaisePropertyChanged(() => BrandName);
            }
        }
    }
}
